<template>
	<view class="box" :style="{'padding-top':systemHeight+18+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<input class="input" placeholder="Enter home address" v-model="postion" />
		</view>
		<view class="small_title">Recently used</view>
		<view class="row" @click="saveAddress">
			<view class="row_left">
				<image class="row_left_img" src="/static/img/location_black.png"></image>
				<view class="range">3.6km</view>
			</view>
			<view class="row_content">
				<view class="postion_name">The name of the place</view>
				<view class="postion_text">Recently used destination detailed address</view>
			</view>
			<image class="delt" src="/static/img/del.png"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				system: null,
				postion: ""
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			},
			saveAddress(){
				uni.navigateTo({
					url:"/pages/index/saveAddress"
				})
			}
		}
	}
</script>

<style>
	.box {
		position: fixed;
		width: 100%;
		height: 100vh;
		overflow: auto;
	}

	.head {
		margin: 0rpx auto 47rpx;
		width: 92%;
		display: flex;
		align-items: center;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
		margin-right: 21rpx;
	}

	.input {
		padding-left: 42rpx;
		width: 100%;
		height: 78rpx;
		background: #F4F4F4;
		border-radius: 39rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 26rpx;
		color: #7D7D7D;
	}

	.small_title {
		width: 92%;
		margin: 40rpx auto 36rpx;
		font-family: Mont;
		font-weight: 600;
		font-size: 28rpx;
	}

	.row {
		width: 92%;
		margin: 0rpx auto 70rpx;
		display: flex;
		align-items: center;
	}

	.row_left {
		margin-right: 28rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.row_left_img {
		width: 34rpx;
		height: 34rpx;
	}

	.range {
		margin-top: 12rpx;
		font-family: Mont;
		font-weight: normal;
		font-size: 20rpx;
	}

	.row_content {
		max-width: 528rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
	}

	.postion_text {
		white-space: pre-wrap;
		word-wrap: break-word;
		font-size: 24rpx;
		color: #787878;
	}

	.row_content_select {
		display: flex;
		align-items: center;
	}

	.row_content_select_text {
		margin-left: 34rpx;
	}

	.delt {
		margin-left: 50rpx;
		width: 29rpx;
		height: 29rpx;
	}
</style>